package com.patMall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class User {
    private Integer userId;

    private String username;

    private String userPwd;

    private String headImg;

    private String nickName;

    private String phone;

    private String realName;

    private String idCard;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date registerTime;
    private Integer userStore;
    private int userRole;

    private List<UserAddress> userAddressList;
    private List<Concern> concernList;

    public User() {
    }

    public User(Integer userId, String userPwd) {
        this.userId = userId;
        this.userPwd = userPwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", headImg='" + headImg + '\'' +
                ", nickName='" + nickName + '\'' +
                ", phone='" + phone + '\'' +
                ", realName='" + realName + '\'' +
                ", idCard='" + idCard + '\'' +
                ", registerTime=" + registerTime +
                ", userStore=" + userStore +
                ", userRole=" + userRole +
                ", userAddressList=" + userAddressList +
                ", concernList=" + concernList +
                '}';
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Integer getUserStore() {
        return userStore;
    }

    public void setUserStore(Integer userStore) {
        this.userStore = userStore;
    }

    public int getUserRole() {
        return userRole;
    }

    public void setUserRole(int userRole) {
        this.userRole = userRole;
    }

    public List<UserAddress> getUserAddressList() {
        return userAddressList;
    }

    public void setUserAddressList(List<UserAddress> userAddressList) {
        this.userAddressList = userAddressList;
    }

    public List<Concern> getConcernList() {
        return concernList;
    }

    public void setConcernList(List<Concern> concernList) {
        this.concernList = concernList;
    }
}